<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>  
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
    <title>简历管理</title>
    
    <script>
        // arr[m][n]
        // m: 0: education, 1: working_experience
        // n: 0: template, 1: index, 2: order, 3: initial_json
        var arr = new Array();
        $(document).ready(function() {
            //聚焦第一个输入框
            $("#department_name").focus();
            //为inputForm注册validate函数
            $("#inputForm").validate();
            $("#add_education_btn").click(function() {
                renderCvEducations(newCvEducationJson());
            });
            $("#add_working_experience_btn").click(function() {
                renderCvWorkingExperiences(newCvWorkingExperienceJson());
            });
            arr[0] = create('cv_education_list', '${cv.curCvLang.educationJson}');
            arr[1] = create('cv_working_experience_list', '${cv.curCvLang.workingExperienceJson}');
            renderCvEducations(arr[0][3]);
            renderCvWorkingExperiences(arr[1][3]);
        });
        function create(list, json) {
            console.log("1:" + list + ":" + json);
            var xj = $.parseJSON(json);
            for (var i = 0; i < xj.length; i++) {
                xj[i].index = i;
            }
            return new Array(Tempo.prepare(list), xj.length - 1, xj.length == 0 ? 0 : xj[xj.length - 1].order, xj);
        }
        function setSelect(id, value) {
            var $x = $(id + " option[value='" + value + "']");
            if ($x.length > 0) {
                $x.attr("selected", true);
            }
            console.log("setSelect:" + id + "," + value);
        }
        function setRadio(id, value) {
            var $x = $(id + "[value='" + value + "']");
            if ($x.length > 0) {
                $x.attr("checked", true);
            }
        }
        function newCvEducationJson() {
            //var json = $.parseJSON('[{startDate:"",endDate:"",school:"",major:"",degree:0,majorDescription:"",oversea:"n"}]');
            var json = $.parseJSON('[{}]');
            json[0].index = ++arr[0][1];
            json[0].order = ++arr[0][2];
            return json;
        }
        function renderCvEducations(jsons) {
            if (jsons.length > 0) {
                arr[0][0].append(jsons)
                for (var i = 0; i < jsons.length; i++) {
                    setSelect("#cv_education_" + i + "_degree", jsons[i].degree);
                    setRadio("#cvEdu" + i + "_isOversea", jsons[i].oversea);
                }
            }
        }
        function newCvWorkingExperienceJson() {
            //var json = $.parseJSON('[{startDate:"",endDate:"",industry:0,company:"",companySize:0,companyType:0,department:"",position:"",description:"",reportTo:"",followerCount:0,witness:"",dismissionReason:"",performance:"",oversea:"n"}]');
            var json = $.parseJSON('[{}]');
            json[0].index = ++arr[1][1];
            json[0].order = ++arr[1][2];
            return json;
        }
        function renderCvWorkingExperiences(jsons) {
            if (jsons.length > 0) {
                arr[1][0].append(jsons)
                for (var i = 0; i < jsons.length; i++) {
                    setSelect("#cv_working_experience_" + i + "_companySize", jsons[i].companySize);
                    setSelect("#cv_working_experience_" + i + "_companyType", jsons[i].companyType);
                    setRadio("#cvWork" + i + "_isOversea", jsons[i].oversea);
                }
            }
        }
    </script>
</head>

<body>
    <form:form id="inputForm" action="${ctx}/member/cv/${action}" method="post" class="form-horizontal" commandName="cv">
        <fieldset>
            <input type="hidden" name="id" value="${cv.id}"/>
            <input type="hidden" name="memberUser.id" value="${cv.memberUser.id}"/>
            <input type="hidden" name="curLang" value="${cv.curLang}"/>
            <input type="hidden" name="_baseInfoUpdated" value="true"/>
            <legend><small>管理简历</small></legend>
            <div class="control-group">
                <label for="cv_name" class="control-label">简历名称:</label>
                <div class="controls">
                    <input type="text" id="cv_name" name="name"  value="${cv.name}" class="input-large required" minlength="3"/>
                </div>
            </div>    
            <div class="control-group">
                <label for="cv_name" class="control-label">语言:</label>
                <div class="controls"> 
                <c:choose>
                <c:when test="${cv.curLang == 0}">中文&nbsp;&nbsp;&nbsp;&nbsp;
                    <a href="${ctx}/member/cv/<c:if test="${action == 'create'}">create</c:if><c:if test="${action == 'update'}">${cv.id}/update</c:if>/1">英文</a>
                </c:when>
                <c:when test="${cv.curLang == 1}">英文&nbsp;&nbsp;&nbsp;&nbsp;
                    <a href="${ctx}/member/cv/<c:if test="${action == 'create'}">create</c:if><c:if test="${action == 'update'}">${cv.id}/update</c:if>/0">中文</a>
                </c:when>
                <c:otherwise>${cv.curLang}</c:otherwise>
                </c:choose>
                </div>
            </div>
            <div class="control-group">
                <label for="cv_separator" class="control-label">----基本信息----</label>
            </div>
            <div class="row">
                <div class="span5"><div class="control-group">
                    <label for="cv_base_realname" class="control-label">姓名:</label>
                    <div class="controls">
                        <input type="text" id="cv_base_realname" name="memberUser.realName"  value="${cv.memberUser.realName}" class="input-large"/>
                    </div>
                </div></div>
                <div class="span7"><div class="control-group">
                    <label for="cv_base_gender" class="control-label">性别:</label>
                    <div class="controls">
                        <input type="radio" name="memberUser.gender" value="m" <c:if test="${cv.memberUser.gender == 'm'}">checked</c:if>>&nbsp;&nbsp;男&nbsp;&nbsp;
                        <input type="radio" name="memberUser.gender" value="f" <c:if test="${cv.memberUser.gender == 'f'}">checked</c:if>>&nbsp;&nbsp;女&nbsp;&nbsp;
                    </div>
                </div></div>
            </div>
            
            <div class="row">
                <div class="span5"><div class="control-group">
                    <label for="cv_base_birthday" class="control-label">生日:</label>
                    <div class="controls">
                        <input type="text" id="cv_base_birthday" name="memberUser.birthday"  value="${cv.memberUser.birthday}" class="input-large"/>
                    </div>
                </div></div>
                <div class="span7"><div class="control-group">
                    <label for="cv_base_workingYears" class="control-label">工作年限:</label>
                    <div class="controls">
                        <form:select path="memberUser.workingYears" items="${_workingYears}" itemLabel="name" itemValue="id" class="input-large"/>
                    </div>
                </div></div>
            </div>    
            <div class="row">
                <div class="span5"><div class="control-group">
                    <label for="cv_base_certType" class="control-label">证件类型:</label>
                    <div class="controls">
                        <form:select path="memberUser.certType" items="${_certTypes}" itemLabel="name" itemValue="id" class="input-large"/>
                    </div>
                </div></div>
                <div class="span7"><div class="control-group">
                    <label for="cv_base_certNum" class="control-label">证件号码:</label>
                    <div class="controls">
                        <input type="text" id="cv_base_certNum" name="memberUser.certNum"  value="${cv.memberUser.certNum}" class="input-large"/>
                    </div>
                </div></div>
            </div>    
            <div class="row">
                <div class="span5"><div class="control-group">
                    <label for="cv_base_residence" class="control-label">居住地:</label>
                    <div class="controls">
                        <form:select path="memberUser.residence" items="${_cities}" itemLabel="name" itemValue="id" class="input-large"/>
                    </div>
                </div></div>
                <div class="span7"><div class="control-group">
                    <label for="cv_base_email" class="control-label">Email:</label>
                    <div class="controls">
                        <input type="text" id="cv_base_email" name="memberUser.email"  value="${cv.memberUser.email}" class="input-large"/>
                    </div>
                </div></div>
            </div>    
            <div class="row">
                <div class="span5"><div class="control-group">
                    <label for="cv_base_incomingRange" class="control-label">目前年薪:</label>
                    <div class="controls">
                        <form:select path="memberUser.incomingRange" items="${_salaryRanges}" itemLabel="name" itemValue="id" class="input-large"/>
                    </div>
                </div></div>
                <div class="span7"><div class="control-group">
                    <label for="cv_base_incomingCurrency" class="control-label">币种:</label>
                    <div class="controls">
                        <form:select path="memberUser.incomingCurrency" items="${_currencies}" itemLabel="name" itemValue="id" class="input-large"/>
                    </div>
                </div></div>
            </div>    
            <div class="row">
                <div class="span5"><div class="control-group">
                    <label for="cv_base_situation" class="control-label">求职状态:</label>
                    <div class="controls">
                        <form:select path="memberUser.situation" items="${_situations}" itemLabel="name" itemValue="id" class="input-large"/>
                    </div>
                </div></div>
                <div class="span7"><div class="control-group">
                    <label for="cv_base_cellNum" class="control-label">手机号码:</label>
                    <div class="controls">
                        <input type="text" id="cv_base_cellNum" name="memberUser.cellNum"  value="${cv.memberUser.cellNum}" class="input-large"/>
                        <c:if test="${cv.memberUser.cellVerified == false}">
                        <a href="#">申请验证</a>
                        </c:if>
                    </div>
                </div></div>
            </div>    
            <div class="row">
                <div class="span5"><div class="control-group">
                    <label for="cv_base_companyPhoneNum" class="control-label">公司电话:</label>
                    <div class="controls">
                        <input type="text" id="cv_base_companyPhoneNum" name="memberUser.companyPhoneNum"  value="${cv.memberUser.companyPhoneNum}" class="input-large"/>
                    </div>
                </div></div>
                <div class="span7"><div class="control-group">
                    <label for="cv_base_homePhoneNum" class="control-label">家庭电话:</label>
                    <div class="controls">
                        <input type="text" id="cv_base_homePhoneNum" name="memberUser.homePhoneNum"  value="${cv.memberUser.homePhoneNum}" class="input-large"/>
                    </div>
                </div></div>
            </div>    
            <div class="control-group">
                <label for="cv_base_hukou" class="control-label">户口:</label>
                <div class="controls">
                    <form:select path="memberUser.hukou" items="${_cities}" itemLabel="name" itemValue="id" class="input-large"/>
                </div>
            </div>    
            <div class="row">
                <div class="span5"><div class="control-group">
                    <label for="cv_base_keyword" class="control-label">关键字:</label>
                    <div class="controls">
                        <input type="text" id="cv_base_keyword" name="memberUser.keyword"  value="${cv.memberUser.keyword}" class="input-large"/>
                    </div>
                </div></div>
            </div>    
            <div class="row">
                <div class="span5"><div class="control-group">
                    <label for="cv_base_country" class="control-label">国家或地区:</label>
                    <div class="controls">
                        <form:select path="memberUser.country" items="${_countries}" itemLabel="name" itemValue="id" class="input-large"/>
                    </div>
                </div></div>
                <div class="span7"><div class="control-group">
                    <label for="cv_base_politicalStatus" class="control-label">政治面貌:</label>
                    <div class="controls">
                        <form:select path="memberUser.politicalStatus" items="${_politicalStatus}" itemLabel="name" itemValue="id" class="input-large"/>
                    </div>
                </div></div>
            </div>    
            <div class="row">
                <div class="span5"><div class="control-group">
                    <label for="cv_base_marriageStatus" class="control-label">婚姻状况:</label>
                    <div class="controls">
                        <form:select path="memberUser.marriageStatus" items="${_marriageStatus}" itemLabel="name" itemValue="id" class="input-large"/>
                    </div>
                </div></div>
                <div class="span7"><div class="control-group">
                    <label for="cv_base_height" class="control-label">身高:</label>
                    <div class="controls">
                        <input type="text" id="cv_base_height" name="memberUser.height"  value="${cv.memberUser.height}" class="input-large"/>
                    </div>
                </div></div>
            </div>    
            <div class="row">
                <div class="span5"><div class="control-group">
                    <label for="cv_base_zipcode" class="control-label">邮编:</label>
                    <div class="controls">
                        <input type="text" id="cv_base_zipcode" name="memberUser.zipcode"  value="${cv.memberUser.zipcode}" class="input-large"/>
                    </div>
                </div></div>
                <div class="span7"><div class="control-group">
                    <label for="cv_base_address" class="control-label">地址:</label>
                    <div class="controls">
                        <input type="text" id="cv_base_address" name="memberUser.address"  value="${cv.memberUser.address}" class="input-large"/>
                    </div>
                </div></div>
            </div>    
            <div class="row">
                <div class="span5"><div class="control-group">
                    <label for="cv_base_homepage" class="control-label">个人主页:</label>
                    <div class="controls">
                        <input type="text" id="cv_base_homepage" name="memberUser.homepage"  value="${cv.memberUser.homepage}" class="input-large"/>
                    </div>
                </div></div>
                <div class="span7"><div class="control-group">
                    <label for="cv_base_qq" class="control-label">QQ号:</label>
                    <div class="controls">
                        <input type="text" id="cv_base_qq" name="memberUser.qq"  value="${cv.memberUser.qq}" class="input-large"/>
                    </div>
                </div></div>
            </div>    
            <div class="row">
                <div class="span5"><div class="control-group">
                    <label for="cv_base_sinaWeibo" class="control-label">新浪微博:</label>
                    <div class="controls">
                        <input type="text" id="cv_base_sinaWeibo" name="memberUser.sinaWeibo"  value="${cv.memberUser.sinaWeibo}" class="input-large"/>
                    </div>
                </div></div>
                <div class="span7"><div class="control-group">
                    <label for="cv_base_wangwang" class="control-label">旺旺ID:</label>
                    <div class="controls">
                        <input type="text" id="cv_base_wangwang" name="memberUser.wangwang"  value="${cv.memberUser.wangwang}" class="input-large"/>
                    </div>
                </div></div>
            </div>    
            <div class="control-group">
                <label for="cv_base_weChat" class="control-label">微信:</label>
                <div class="controls">
                    <input type="text" id="cv_base_weChat" name="memberUser.weChat"  value="${cv.memberUser.weChat}" class="input-large"/>
                </div>
            </div>
            <div class="control-group">
                <label for="cv_separator" class="control-label">----教育经历----</label>
            </div>
            <div id="cv_education_list" class="control-group">
                <div id="cv_education_{{index}}" class="control-group" data-template>
                    <div class="row">
                        <div class="span5"><div class="control-group">
                            <label for="cv_education_{{index}}" class="control-label">教育经历-{{index}}</label>
                            <input type="hidden" id="cv_education_{{index}}_order" name="curCvLang.cvEducation[{{index}}].order" value="{{order}}" class="input-large"/>
                        </div></div>
                    </div>
                    <div class="row">
                        <div class="span12"><div class="control-group">
                            <label for="cv_education_{{index}}_date" class="control-label">时间：</label>
                            <div class="controls">
                                <input type="text" id="cv_education_{{index}}_start" name="curCvLang.cvEducation[{{index}}].startDate" value="{{startDate}}" class="input-large"/>&nbsp;&nbsp;到&nbsp;&nbsp;
                                <input type="text" id="cv_education_{{index}}_end" name="curCvLang.cvEducation[{{index}}].endDate" value="{{endDate}}" class="input-large"/>&nbsp;&nbsp;（后两项不填表示至今）
                            </div>
                        </div></div>
                    </div>    
                    <div class="row">
                        <div class="span12"><div class="control-group">
                            <label for="cv_education_{{index}}_school" class="control-label">学校：</label>
                            <div class="controls">
                                <input type="text" id="cv_education_{{index}}_school" name="curCvLang.cvEducation[{{index}}].school" value="{{school}}" class="input-large"/>
                            </div>
                        </div></div>
                    </div>
                    <div class="row">
                        <div class="span12"><div class="control-group">
                            <label for="cv_education_{{index}}_major" class="control-label">专业：</label>
                            <div class="controls">
                                <input type="text" id="cv_education_{{index}}_major" name="curCvLang.cvEducation[{{index}}].major" value="{{major}}" class="input-large"/>
                            </div>
                        </div></div>
                    </div>    
                    <div class="row">
                        <div class="span12"><div class="control-group">
                            <label for="cv_education_{{index}}_degree" class="control-label">学历：</label>
                            <div class="controls">
                                <select id="cv_education_{{index}}_degree" name="curCvLang.cvEducation[{{index}}].degree" class="input-large">
                                    <c:forEach items="${_degrees}" var="degree">
                                    <option value="${degree.id}">${degree.name}</option>
                                    </c:forEach>
                                </select>
                            </div>
                        </div></div>
                    </div>    
                    <div class="row">
                        <div class="span12"><div class="control-group">
                            <label for="cv_education_{{index}}_majorDescription" class="control-label">专业描述：</label>
                            <div class="controls">
                                <textarea id="cv_education_{{index}}_majorDescription" name="curCvLang.cvEducation[{{index}}].majorDescription" class="input-large">{{majorDescription}}</textarea>
                            </div>
                        </div></div>
                    </div>    
                    <div class="row">
                        <div class="span12"><div class="control-group">
                            <label for="cv_education_{{index}}_isOversea" class="control-label">海外学习经历：</label>
                            <div class="controls">
                                <input type="radio" id="cvEdu{{index}}_isOversea" name="curCvLang.cvEducation[{{index}}].isOversea" value="y">&nbsp;&nbsp;是&nbsp;&nbsp;
                                <input type="radio" id="cvEdu{{index}}_isOversea" name="curCvLang.cvEducation[{{index}}].isOversea" value="n">&nbsp;&nbsp;否&nbsp;&nbsp;
                            </div>
                        </div></div>
                    </div>
                </div>
            </div>
            <input id="add_education_btn" class="btn" type="button" value="添加教育经历"/>

            <div class="control-group">
                <label for="cv_separator" class="control-label">----工作经历----</label>
            </div>
            <div id="cv_working_experience_list" class="control-group">
                <div id="cv_working_experience_{{index}}" class="control-group" data-template>
                    <div class="row">
                        <div class="span5"><div class="control-group">
                            <label for="cv_working_experience_{{index}}" class="control-label">工作经历-{{index}}</label>
                            <input type="hidden" id="cv_working_experience_{{index}}_order" name="curCvLang.cvWorkingExperience[{{index}}].order" value="{{order}}" class="input-large"/>
                        </div></div>
                    </div>
                    <div class="row">
                        <div class="span12"><div class="control-group">
                            <label for="cv_working_experience_{{index}}_date" class="control-label">时间：</label>
                            <div class="controls">
                                <input type="text" id="cv_working_experience_{{index}}_start" name="curCvLang.cvWorkingExperience[{{index}}].startDate" value="{{startDate}}" class="input-large"/>&nbsp;&nbsp;到&nbsp;&nbsp;
                                <input type="text" id="cv_working_experience_{{index}}_end" name="curCvLang.cvWorkingExperience[{{index}}].endDate" value="{{endDate}}" class="input-large"/>&nbsp;&nbsp;（后两项不填表示至今）
                            </div>
                        </div></div>
                    </div>    
                    <div class="row">
                        <div class="span12"><div class="control-group">
                            <label for="cv_working_experience_{{index}}_company" class="control-label">公司：</label>
                            <div class="controls">
                                <input type="text" id="cv_working_experience_{{index}}_company" name="curCvLang.cvWorkingExperience[{{index}}].company" value="{{company}}" class="input-large"/>
                            </div>
                        </div></div>
                    </div>
                    <div class="row">
                        <div class="span12"><div class="control-group">
                            <label for="cv_working_experience_{{index}}_industry" class="control-label">行业：</label>
                            <div class="controls">
                                <input type="text" id="cv_working_experience_{{index}}_major" name="curCvLang.cvWorkingExperience[{{index}}].industry" value="{{industry}}" class="input-large"/>
                            </div>
                        </div></div>
                    </div>
                    <div class="row">
                        <div class="span5"><div class="control-group">
                            <label for="cv_working_experience_{{index}}_company_size" class="control-label">公司规模：</label>
                            <div class="controls">
                                <select id="cv_working_experience_{{index}}_companySize" name="curCvLang.cvWorkingExperience[{{index}}].companySize" class="input-large">
                                    <c:forEach items="${_companySizes}" var="companySizes">
                                    <option value="${companySizes.id}">${companySizes.name}</option>
                                    </c:forEach>
                                </select>
                            </div>
                        </div></div>
                        <div class="span7"><div class="control-group">
                            <label for="cv_working_experience_{{index}}_companyType" class="control-label">公司性质：</label>
                            <div class="controls">
                                <select id="cv_working_experience_{{index}}_companyType" name="curCvLang.cvWorkingExperience[{{index}}].companyType" class="input-large">
                                    <c:forEach items="${_companyTypes}" var="companyTypes">
                                    <option value="${companyTypes.id}">${companyTypes.name}</option>
                                    </c:forEach>
                                </select>
                            </div>
                        </div></div>
                    </div>
                    <div class="row">
                        <div class="span5"><div class="control-group">
                            <label for="cv_working_experience_{{index}}_department" class="control-label">部门：</label>
                            <div class="controls">
                                <input type="text" id="cv_working_experience_{{index}}_department" name="curCvLang.cvWorkingExperience[{{index}}].department" value="{{department}}" class="input-large"/>
                            </div>
                        </div></div>
                        <div class="span7"><div class="control-group">
                            <label for="cv_working_experience_{{index}}_position" class="control-label">职位：</label>
                            <div class="controls">
                                <input type="text" id="cv_working_experience_{{index}}_position" name="curCvLang.cvWorkingExperience[{{index}}].position" value="{{position}}" class="input-large"/>
                            </div>
                        </div></div>
                    </div>
                    <div class="row">
                        <div class="span12"><div class="control-group">
                            <label for="cv_working_experience_{{index}}_description" class="control-label">工作描述：</label>
                            <div class="controls">
                                <textarea id="cv_working_experience_{{index}}_description" name="curCvLang.cvWorkingExperience[{{index}}].description" class="input-large">{{description}}</textarea>
                            </div>
                        </div></div>
                    </div>
                    <div class="row">
                        <div class="span4"><div class="control-group">
                            <label for="cv_working_experience_{{index}}_reportTo" class="control-label">汇报对象：</label>
                            <div class="controls">
                                <input type="text" id="cv_working_experience_{{index}}_reportTo" name="curCvLang.cvWorkingExperience[{{index}}].reportTo" value="{{reportTo}}" class="input-large"/>
                            </div>
                        </div></div>
                        <div class="span4"><div class="control-group">
                            <label for="cv_working_experience_{{index}}_followerCount" class="control-label">下属人数：</label>
                            <div class="controls">
                                <input type="text" id="cv_working_experience_{{index}}_followerCount" name="curCvLang.cvWorkingExperience[{{index}}].followerCount" value="{{followerCount}}" class="input-large"/>
                            </div>
                        </div></div>
                        <div class="span4"><div class="control-group">
                            <label for="cv_working_experience_{{index}}_witness" class="control-label">证明人：</label>
                            <div class="controls">
                                <input type="text" id="cv_working_experience_{{index}}_witness" name="curCvLang.cvWorkingExperience[{{index}}].witness" value="{{witness}}" class="input-large"/>
                            </div>
                        </div></div>
                    </div>
                    <div class="row">
                        <div class="span12"><div class="control-group">
                            <label for="cv_working_experience_{{index}}_dimissionReason" class="control-label">离职原因：</label>
                            <div class="controls">
                                <input type="text" id="cv_working_experience_{{index}}_dimissionReason" name="curCvLang.cvWorkingExperience[{{index}}].dimissionReason" value="{{dimissionReason}}" class="input-large"/>
                            </div>
                        </div></div>
                    </div>
                    <div class="row">
                        <div class="span12"><div class="control-group">
                            <label for="cv_working_experience_{{index}}_performance" class="control-label">主要业绩：</label>
                            <div class="controls">
                                <textarea id="cv_working_experience_{{index}}_performance" name="curCvLang.cvWorkingExperience[{{index}}].performance" class="input-large">{{performance}}</textarea>
                            </div>
                        </div></div>
                    </div>
                    <div class="row">
                        <div class="span12"><div class="control-group">
                            <label for="cv_working_experience_{{index}}_isOversea" class="control-label">海外工作经历：</label>
                            <div class="controls">
                                <input type="radio" id="cvWork{{index}}_isOversea" name="curCvLang.cvWorkingExperience[{{index}}].isOversea" value="y">&nbsp;&nbsp;是&nbsp;&nbsp;
                                <input type="radio" id="cvWork{{index}}_isOversea" name="curCvLang.cvWorkingExperience[{{index}}].isOversea" value="n">&nbsp;&nbsp;否&nbsp;&nbsp;
                            </div>
                        </div></div>
                    </div>
                </div>
            </div>
            <input id="add_working_experience_btn" class="btn" type="button" value="添加工作经历"/>

            <div class="form-actions">
                <input id="submit_btn" class="btn btn-primary" type="submit" value="提交"/>&nbsp;    
                <input id="cancel_btn" class="btn" type="button" value="返回" onclick="history.back()"/>
            </div>
        </fieldset>
    </form:form>
</body>
</html>
